                                                    /*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.dcpApplication.question3.dipApp.dipViolation;

/**
 *
 * @author spheshie
 */
public abstract class Transaction {
    
    private int accountNumber;
    
    public Transaction()
    {
    }
    
    public Transaction(int accountNumber)
    {
       setAccountNumber(accountNumber);
    }
    
    public int getAccountNumber()
    {
        return accountNumber;
    }
    
    public void setAccountNumber(int accNum)
    {
        accountNumber = accNum;
    }
    
    public abstract String execute();
    
    public String toString()
    {
        return "acc number:" + accountNumber;
    }
    
}
